package com.example.mybatisplus.pageplus;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhouxl
 * @DATE 2020/10/12
 * @descriptoin
 */
@Controller
@RequestMapping("/api/pageplus")
public class PagePlusController {

    @Autowired
    private PagePlusService pagePlusService;


    /**
     * 测试自定义插件是否生效
     *
     * @return
     */
    @RequestMapping("/getUserByPage")
    @ResponseBody
    public Object getUserByPage() {
        return pagePlusService.getUserByPage();
    }

}
